package com.wang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wang.pojo.CustomerQuestion;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @Entity com.wang.pojo.CustomerQuestion
 */
@Mapper
public interface CustomerQuestionMapper extends BaseMapper<CustomerQuestion> {

    @Update("update tb_customer_question set del_flag=1 where question_id=#{questionId} ")
    void delQuestion(Integer questionId);
    @Update("update tb_customer_question set qcount=qcount+1 where question_id=#{questionId} and del_flag=0 ")
    void addQcount(CustomerQuestion question);

}




